package iscript.uiFramework 
{
	import flash.display.Stage;
	import iscript.uiFramework.util.UIResource;

	public class UIFramework  
	{
		
		static public const resource:UIResource=new UIResource();
		static private var _stage:Stage;
		static private var _initialized:Boolean;

		
		public function UIFramework() 
		{
		}
		
		static public function get INITIALIZED():Boolean { return _initialized; };
	    static public function get UiStage():Stage { return _stage; }
		
		public function  initialize(stage:Stage,uiSettingData:XML):void {
			_initialized = true;
			_stage = stage;
			resource.initialize(stage.loaderInfo.applicationDomain,uiSettingData);
		}
			
	}

}